/*
 * BSM6.0
 *
 * Copyright 2012-2013 (C) SINODATA CO., LTD. All Rights Reserved.
 */
package com.sinodata.bsm.inmp.finder;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import com.sinodata.bsm.inmp.conf.NetDevice;
import com.sinodata.bsm.inmp.conf.PORT;
import com.sinodata.bsm.inmp.util.WebServiceUtil;

/**
 * <p>
 * Description: 
 * </p>
 *
 * @author wangyazhou
 * @version 1.0

 * <p>
 * History: 
 *
 * Date                     Author         Version     Description
 * ---------------------------------------------------------------------------------
 * 2012-11-17 下午4:29:04          wangyazhou        1.0         To create
 * </p>
 *
 * @since 
 * @see     
 */
public class NetDecPortFinder extends Finder {

    @Override
    public List<String[]> find(String ip, Map params) {
        List<String[]> list = new ArrayList<String[]>();
        NetDevice nd = WebServiceUtil.getInstance().getNetMap().get("A");

        List<PORT> clist = nd.getPortList();
        for (PORT c : clist) {
            list.add(c.toRes());
        }
        
        
        System.out.println("port");
        return list;
    }

}
